package com.sca.order.provider;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Embrace 00105568
 * @version 1.0
 * @description: 工单对外服务提供接口测试类
 * @date 2021/7/7 15:01
 * @git https://gitee.com/EmbraceQAQ
 */
@RestController
@RequestMapping("orderProviderTest")
/**
 * 动态刷新配置注解 配置相关后面会介绍到
 */
@RefreshScope
public class OrderProviderTest {
    /**
     * 配置相关后面会介绍到
     */

    @Value("${user.name}")
    private String name;
    @Value("${user.age}")
    private String age;

    @GetMapping("test")
    public String test() {
        return "order 服務的返回的數據" + age + name;
    }
}

